package com.asset.salesforce.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.asset.salesforce.dao.JobTitleDao;
import com.asset.salesforce.domain.JobTitle;

@Service
@Transactional(readOnly=true)
public class JobTitleService {
	@Autowired
	JobTitleDao jobTitleDao;
	@Transactional(readOnly=true)
	public List<JobTitle> getAllJobtitle() {
		return jobTitleDao.getAllJobtitle();
	}
	@Transactional(readOnly=true)
	public JobTitle getJobtitleById(Integer id) {
		return jobTitleDao.getJobtitleById(id);
	}

}
